package com.lyk.coursearrange.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@TableName("teach_stu_info")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TeachStuInfo {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("customer_information_id")
    private Long customerInformationId;

    @TableField("student_id")
    private Integer studentId;

    @TableField("course_category_id")
    private Integer CategoryId;

    @TableField(exist = false)
    private Integer[] courseCategoryId;


    @TableField("teacher_id")
    private Integer teacherId;

    @TableField("create_time")
    private Date createTime;

    @NotBlank(message = "授课时间不能为空")
    @TableField("start_time")
    private String startTime;



    @NotNull(message = "是否交诊断费不能为空")
    @TableField("is_diagnosis_all_pay")
    private Integer isDiagnosisAllPay;

    @TableField("diagnosis_all_pay_money")
    private BigDecimal diagnosisAllPayMoney;

    @TableField("diagnosis_time")
    private String diagnosisTime;

    @TableField("diagnosis_pay_type")
    private Integer diagnosisPayType;



    @NotNull(message = "是否全款不能为空")
    @TableField("is_all_pay")
    private Integer isAllPay;

    @TableField("all_pay_money")
    private BigDecimal allPayMoney;

    @TableField("pay_time")
    private String payTime;

    @TableField("pay_type")
    private Integer payType;

    @TableField("is_update")
    private Integer isUpdate;




    @NotBlank(message = "学生姓名不能为空")
    @TableField(exist = false)
    private String studentName;

    @TableField(exist = false)
    @NotNull(message = "年级不能为空")
    private String[] grade;

    @TableField(exist = false)
    @NotBlank(message = "性别不能为空")
    private String sex;

    @TableField(exist = false)
    private String sex2;

    @TableField(exist = false)
    @NotBlank(message = "地址不能为空")
    private String address;

    @TableField(exist = false)
    private List<Stages> stages;

    @TableField(exist = false)
    private String realName;
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private String realNameToTea;

}
